﻿@namespace Masa.Docs.Core.Components
@typeparam TItem where TItem : IDefaultItem<TItem>

<AppMenuCustom ActivatorContent="@ActivatorContent"
               Width="@Width"
               MinWidth="@MinWidth">
    <DefaultList Items="@Items" ItemContent="ItemContent">
    </DefaultList>
</AppMenuCustom>

@code {

    [Parameter, EditorRequired]
    public RenderFragment<ActivatorProps>? ActivatorContent { get; set; }

    [Parameter]
    public RenderFragment<TItem>? ItemContent { get; set; }

    [Parameter]
    public List<TItem> Items { get; set; } = new();

    [Parameter]
    public StringNumber? Width { get; set; }

    [Parameter]
    public StringNumber? MinWidth { get; set; }

}
